improve reproducibility
PATCH 1/2 improve reproducibility
From: Changqing Li <[email protected]>
* Refer [1], cgo will embeded cgo_ldflags in the intermediary output, which make content ID will be incfluenced by cgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it
* CGO_ENABLED/CGO_CFLAGS/CGO_LDFLAGS already exported in go.bbclass with the same value, remove the not needed settings
[1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448
--- recipes-containers/containerd/containerd_git.bb | 3 --- recipes-containers/cri-tools/cri-tools_git.bb | 5 ----- recipes-containers/docker-compose/docker-compose_git.bb | 6 +----- .../docker-distribution/docker-distribution_git.bb | 3 --- recipes-containers/docker/docker.inc | 4 ---- recipes-containers/kubernetes/kubernetes_git.bb | 8 +++++--- recipes-containers/nerdctl/nerdctl_git.bb | 6 ------ recipes-containers/oci-image-tools/oci-image-tools_git.bb | 3 --- .../oci-runtime-tools/oci-runtime-tools_git.bb | 3 --- recipes-containers/podman/podman_git.bb | 8 -------- recipes-containers/runc/runc.inc | 3 --- recipes-containers/skopeo/skopeo_git.bb | 3 --- recipes-containers/umoci/umoci_git.bb | 3 --- 13 files changed, 6 insertions(+), 52 deletions(-)
recipes-containers/containerd/containerd_git.bb +0 -3
@@ -47,9 +47,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export BUILDTAGS="no_btrfs static_build netgo" export CFLAGS="${CFLAGS}" export LDFLAGS="${LDFLAGS}"
recipes-containers/cri-tools/cri-tools_git.bb +0 -5
@@ -46,12 +46,7 @@ do_compile() { export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" cd ${S}/src/import - # Build the target binaries - export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"
recipes-containers/docker-compose/docker-compose_git.bb +1 -5
@@ -53,13 +53,9 @@ do_compile() { # GOMODCACHE, GOPROXY, GOSUMDB, GOTOOLCHAIN are set by go-mod-vcs.bbclass export GOPATH="${S}/src/import/.gopath:${STAGING_DIR_TARGET}/${prefix}/local/go" - export CGO_ENABLED="1" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" GO_LDFLAGS="-s -w -X internal.Version=${PV} -X ${COMPOSE_PKG}/internal.Version=${PV}" GO_BUILDTAGS=""
@@ -85,4 +81,4 @@ INSANE_SKIP:${PN} += "ldflags already-stripped" # the AWS dependency is 8GB, try and control the # size of the clones -BB_GIT_SHALLOW = "1" +BB_GIT_SHALLOW = "1"
recipes-containers/docker-distribution/docker-distribution_git.bb +0 -3
@@ -28,12 +28,9 @@ do_compile() { export GOROOT="${STAGING_LIBDIR}/go" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" export GO_GCFLAGS="" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GO_BUILD_FLAGS="-trimpath"
recipes-containers/docker/docker.inc +0 -4
@@ -80,10 +80,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}' export GO111MODULE=off
recipes-containers/kubernetes/kubernetes_git.bb +5 -3
@@ -54,6 +54,9 @@ inherit cni_networking COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux' +CGO_LDFLAGS ?= "${LDFLAGS}" +CGO_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" + do_compile() { export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${UNPACKDIR}/git/" cd ${S}
@@ -70,7 +73,6 @@ do_compile() { export CGO_LDFLAGS="$(echo ${BUILD_LDFLAGS} | sed 's/-Wl,-O1//g' | sed 's/-Wl,--dynamic-linker.*?\( \|$\)//g')" export CC="${BUILD_CC}" export LD="${BUILD_LD}" - # set the toolchain to local to avoid an attempted fetch of # valiation by the build # https://github.com/actions/setup-go/issues/420
@@ -85,8 +87,8 @@ do_compile() { export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_LDFLAGS="${CGO_LDFLAGS}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"
recipes-containers/nerdctl/nerdctl_git.bb +0 -6
@@ -71,12 +71,6 @@ do_compile() { cd ${S}/src/import - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # -trimpath removes build paths from the binary (required for reproducible builds) oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath" binaries }
recipes-containers/oci-image-tools/oci-image-tools_git.bb +0 -3
@@ -29,11 +29,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOBUILDFLAGS="-trimpath"
recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +0 -3
@@ -25,11 +25,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOFLAGS="-mod=vendor"
recipes-containers/podman/podman_git.bb +0 -8
@@ -78,19 +78,11 @@ do_compile() { ln -sf "../../../import/vendor/github.com/varlink/" ".gopath/src/github.com/varlink" - export GOARCH="${BUILD_GOARCH}" export GOPATH="${S}/src/.gopath" export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" cd ${S}/src/.gopath/src/"${PODMAN_PKG}" - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # podman now builds go-md2man and requires the host/build details export NATIVE_GOOS=${BUILD_GOOS} export NATIVE_GOARCH=${BUILD_GOARCH}
recipes-containers/runc/runc.inc +0 -3
@@ -57,9 +57,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export GO=${GO} export CFLAGS=""
recipes-containers/skopeo/skopeo_git.bb +0 -3
@@ -53,11 +53,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export EXTRA_LDFLAGS="-s -w"
recipes-containers/umoci/umoci_git.bb +0 -3
@@ -62,11 +62,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off
Signature · 1 line
2.34.1
PATCH 2/2 podman: improve reproducibility
From: Changqing Li <[email protected]>
disable buildvcs to improve reproducibility
--- recipes-containers/podman/podman_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +1 -1
@@ -48,7 +48,7 @@ export LDFLAGS = "" TOOLCHAIN = "gcc" # podmans Makefile expects BUILDFLAGS to be set but go.bbclass defines them in GOBUILDFLAGS -export BUILDFLAGS = "${GOBUILDFLAGS}" +export BUILDFLAGS = "${GOBUILDFLAGS} -buildvcs=false" inherit go goarch inherit container-host
Signature · 1 line
2.34.1
Quoted 11 lines · Changqing Li via lists.yoctoproject.org
From: Changqing Li <[email protected]>
* Refer [1], cgo will embeded
cgo_ldflagsin the intermediary output, which make content ID will be incfluenced bycgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it* CGO_ENABLED/CGO_CFLAGS/CGO_LDFLAGS already exported in go.bbclass with the same value, remove the not needed settings
refer to all my previous email on the subject.
I will continue to set these in the classes themselves.
Bruce
Quoted 302 lines
[1]
https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448Signed-off-by Changqing Li <[email protected]>--- recipes-containers/containerd/containerd_git.bb | 3 --- recipes-containers/cri-tools/cri-tools_git.bb | 5 ----- recipes-containers/docker-compose/docker-compose_git.bb | 6 +----- .../docker-distribution/docker-distribution_git.bb | 3 --- recipes-containers/docker/docker.inc | 4 ---- recipes-containers/kubernetes/kubernetes_git.bb | 8 +++++--- recipes-containers/nerdctl/nerdctl_git.bb | 6 ------ recipes-containers/oci-image-tools/oci-image-tools_git.bb | 3 --- .../oci-runtime-tools/oci-runtime-tools_git.bb | 3 --- recipes-containers/podman/podman_git.bb | 8 -------- recipes-containers/runc/runc.inc | 3 --- recipes-containers/skopeo/skopeo_git.bb | 3 --- recipes-containers/umoci/umoci_git.bb | 3 --- 13 files changed, 6 insertions(+), 52 deletions(-)recipes-containers/containerd/containerd_git.bb +0
-3@@ -47,9 +47,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export BUILDTAGS="no_btrfs static_build netgo" export CFLAGS="${CFLAGS}" export LDFLAGS="${LDFLAGS}"recipes-containers/cri-tools/cri-tools_git.bb +0
-0@@ -46,12 +46,7 @@ do_compile() { exportGOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
cd ${S}/src/importrecipes-containers/cri-tools/cri-tools_git.bb +0
-2- # Build the target binaries - export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the neededheaders files and libraries
recipes-containers/cri-tools/cri-tools_git.bb +0
-3- export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"recipes-containers/docker-compose/docker-compose_git.bb +0
-0@@ -53,13 +53,9 @@ do_compile() { # GOMODCACHE, GOPROXY, GOSUMDB, GOTOOLCHAIN are set bygo-mod-vcs.bbclass
export
GOPATH="${S}/src/import/.gopath:${STAGING_DIR_TARGET}/${prefix}/local/go"recipes-containers/docker-compose/docker-compose_git.bb +0
-4- export CGO_ENABLED="1" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" GO_LDFLAGS="-s -w -X internal.Version=${PV} -X${COMPOSE_PKG}/internal.Version=${PV}"
GO_BUILDTAGS=""recipes-containers/docker-compose/docker-compose_git.bb +1
-1@@ -85,4 +81,4 @@ INSANE_SKIP:${PN} += "ldflags already-stripped" # the AWS dependency is 8GB, try and control the # size of the clones -BB_GIT_SHALLOW = "1" +BB_GIT_SHALLOW = "1"(quoted diff) +0
-0docker-distribution_git.bb b/recipes-containers/docker-distribution/ docker-distribution_git.bb
index 5e37fe74..63001331 100644recipes-containers/docker-distribution/docker-distribution_git.bb +0
-3@@ -28,12 +28,9 @@ do_compile() { export GOROOT="${STAGING_LIBDIR}/go" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" export GO_GCFLAGS="" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GO_BUILD_FLAGS="-trimpath"recipes-containers/docker/docker.inc +0
-4@@ -80,10 +80,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}' export GO111MODULE=offrecipes-containers/kubernetes/kubernetes_git.bb +3
-0@@ -54,6 +54,9 @@ inherit cni_networking COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux' +CGO_LDFLAGS ?= "${LDFLAGS}" +CGO_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" + do_compile() { exportGOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${UNPACKDIR}/git/"
cd ${S}recipes-containers/kubernetes/kubernetes_git.bb +0
-0@@ -70,7 +73,6 @@ do_compile() { export CGO_LDFLAGS="$(echo ${BUILD_LDFLAGS} | sed 's/-Wl,-O1//g' |sed 's/-Wl,--dynamic-linker.*?\( \|$\)//g')"
export CC="${BUILD_CC}" export LD="${BUILD_LD}"recipes-containers/kubernetes/kubernetes_git.bb +0
-1- # set the toolchain to local to avoid an attempted fetch of # valiation by the build # https://github.com/actions/setup-go/issues/420@@ -85,8 +87,8 @@ do_compile() { export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the neededheaders files and libraries
export CGO_ENABLED="1"recipes-containers/kubernetes/kubernetes_git.bb +2
-2- export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_LDFLAGS="${CGO_LDFLAGS}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"recipes-containers/nerdctl/nerdctl_git.bb +0
-6@@ -71,12 +71,6 @@ do_compile() { cd ${S}/src/import - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # -trimpath removes build paths from the binary (required for reproducible builds) oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}"GO_BUILD_FLAGS="-trimpath" binaries
}recipes-containers/oci-image-tools/oci-image-tools_git.bb +0
-3@@ -29,11 +29,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOBUILDFLAGS="-trimpath"recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +0
-3@@ -25,11 +25,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOFLAGS="-mod=vendor"recipes-containers/podman/podman_git.bb +0
-0@@ -78,19 +78,11 @@ do_compile() { ln -sf "../../../import/vendor/github.com/varlink/" ".gopath/src/github.com/varlink"
- export GOARCH="${BUILD_GOARCH}"
export GOPATH="${S}/src/.gopath" exportGOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
cd ${S}/src/.gopath/src/"${PODMAN_PKG}"recipes-containers/podman/podman_git.bb +0
-7- # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # podman now builds go-md2man and requires the host/build details export NATIVE_GOOS=${BUILD_GOOS} export NATIVE_GOARCH=${BUILD_GOARCH}recipes-containers/runc/runc.inc +0
-3@@ -57,9 +57,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export GO=${GO} export CFLAGS=""recipes-containers/skopeo/skopeo_git.bb +0
-3@@ -53,11 +53,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export EXTRA_LDFLAGS="-s -w"recipes-containers/umoci/umoci_git.bb +0
-4@@ -62,11 +62,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9562):
https://lists.yoctoproject.org/g/meta-virtualization/message/9562
Mute This Topic: https://lists.yoctoproject.org/mt/117668816/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Bruce Ashfield via lists.yoctoproject.org
Quoted 8 lines · Changqing Li via lists.yoctoproject.org
From: Changqing Li <[email protected]>
* Refer [1], cgo will embeded
cgo_ldflagsin the intermediary output, which make content ID will be incfluenced bycgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it
Quoted 8 lines
Quoted 3 lines
* CGO_ENABLED/CGO_CFLAGS/CGO_LDFLAGS already exported in go.bbclass with the same value, remove the not needed settings
refer to all my previous email on the subject.
I will continue to set these in the classes themselves.
BUT, I will take the removal of the sysroot if we no longer need it.
But the duplicated values from the go classes are entirely intentional.
Bruce
Quoted 318 lines
Bruce
Quoted 289 lines
[1]
https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448Signed-off-by Changqing Li <[email protected]>--- recipes-containers/containerd/containerd_git.bb | 3 --- recipes-containers/cri-tools/cri-tools_git.bb | 5 ----- recipes-containers/docker-compose/docker-compose_git.bb | 6 +----- .../docker-distribution/docker-distribution_git.bb | 3 --- recipes-containers/docker/docker.inc | 4 ---- recipes-containers/kubernetes/kubernetes_git.bb | 8 +++++--- recipes-containers/nerdctl/nerdctl_git.bb | 6 ------ recipes-containers/oci-image-tools/oci-image-tools_git.bb | 3 --- .../oci-runtime-tools/oci-runtime-tools_git.bb | 3 --- recipes-containers/podman/podman_git.bb | 8 -------- recipes-containers/runc/runc.inc | 3 --- recipes-containers/skopeo/skopeo_git.bb | 3 --- recipes-containers/umoci/umoci_git.bb | 3 --- 13 files changed, 6 insertions(+), 52 deletions(-)recipes-containers/containerd/containerd_git.bb +0
-3@@ -47,9 +47,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export BUILDTAGS="no_btrfs static_build netgo" export CFLAGS="${CFLAGS}" export LDFLAGS="${LDFLAGS}"recipes-containers/cri-tools/cri-tools_git.bb +0
-0@@ -46,12 +46,7 @@ do_compile() { exportGOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
cd ${S}/src/importrecipes-containers/cri-tools/cri-tools_git.bb +0
-2- # Build the target binaries - export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the neededheaders files and libraries
recipes-containers/cri-tools/cri-tools_git.bb +0
-3- export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"recipes-containers/docker-compose/docker-compose_git.bb +0
-0@@ -53,13 +53,9 @@ do_compile() { # GOMODCACHE, GOPROXY, GOSUMDB, GOTOOLCHAIN are set bygo-mod-vcs.bbclass
export
GOPATH="${S}/src/import/.gopath:${STAGING_DIR_TARGET}/${prefix}/local/go"recipes-containers/docker-compose/docker-compose_git.bb +0
-4- export CGO_ENABLED="1" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" GO_LDFLAGS="-s -w -X internal.Version=${PV} -X${COMPOSE_PKG}/internal.Version=${PV}"
GO_BUILDTAGS=""recipes-containers/docker-compose/docker-compose_git.bb +1
-1@@ -85,4 +81,4 @@ INSANE_SKIP:${PN} += "ldflags already-stripped" # the AWS dependency is 8GB, try and control the # size of the clones -BB_GIT_SHALLOW = "1" +BB_GIT_SHALLOW = "1"(quoted diff) +0
-0docker-distribution_git.bb b/recipes-containers/docker-distribution/ docker-distribution_git.bb
index 5e37fe74..63001331 100644recipes-containers/docker-distribution/docker-distribution_git.bb +0
-3@@ -28,12 +28,9 @@ do_compile() { export GOROOT="${STAGING_LIBDIR}/go" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" export GO_GCFLAGS="" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GO_BUILD_FLAGS="-trimpath"recipes-containers/docker/docker.inc +0
-4@@ -80,10 +80,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}' export GO111MODULE=offrecipes-containers/kubernetes/kubernetes_git.bb +3
-0@@ -54,6 +54,9 @@ inherit cni_networking COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux' +CGO_LDFLAGS ?= "${LDFLAGS}" +CGO_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" + do_compile() { exportGOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${UNPACKDIR}/git/"
cd ${S}recipes-containers/kubernetes/kubernetes_git.bb +0
-0@@ -70,7 +73,6 @@ do_compile() { export CGO_LDFLAGS="$(echo ${BUILD_LDFLAGS} | sed 's/-Wl,-O1//g'| sed 's/-Wl,--dynamic-linker.*?\( \|$\)//g')"
export CC="${BUILD_CC}" export LD="${BUILD_LD}"recipes-containers/kubernetes/kubernetes_git.bb +0
-1- # set the toolchain to local to avoid an attempted fetch of # valiation by the build # https://github.com/actions/setup-go/issues/420@@ -85,8 +87,8 @@ do_compile() { export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the neededheaders files and libraries
export CGO_ENABLED="1"recipes-containers/kubernetes/kubernetes_git.bb +2
-2- export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_LDFLAGS="${CGO_LDFLAGS}" export CFLAGS="" export LDFLAGS="" export CC="${CC}"recipes-containers/nerdctl/nerdctl_git.bb +0
-6@@ -71,12 +71,6 @@ do_compile() { cd ${S}/src/import - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # -trimpath removes build paths from the binary (required for reproducible builds) oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}"GO_BUILD_FLAGS="-trimpath" binaries
}recipes-containers/oci-image-tools/oci-image-tools_git.bb +0
-3@@ -29,11 +29,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOBUILDFLAGS="-trimpath"(quoted diff) +0
-0oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/ oci-runtime-tools_git.bb
index81f51f9c..0ba69756100644recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +0
-3@@ -25,11 +25,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOFLAGS="-mod=vendor"recipes-containers/podman/podman_git.bb +0
-0@@ -78,19 +78,11 @@ do_compile() { ln -sf "../../../import/vendor/github.com/varlink/" ".gopath/src/github.com/varlink"
- export GOARCH="${BUILD_GOARCH}"
export GOPATH="${S}/src/.gopath" exportGOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
cd ${S}/src/.gopath/src/"${PODMAN_PKG}"recipes-containers/podman/podman_git.bb +0
-7- # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # podman now builds go-md2man and requires the host/build details export NATIVE_GOOS=${BUILD_GOOS} export NATIVE_GOARCH=${BUILD_GOARCH}recipes-containers/runc/runc.inc +0
-3@@ -57,9 +57,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export GO=${GO} export CFLAGS=""recipes-containers/skopeo/skopeo_git.bb +0
-3@@ -53,11 +53,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export EXTRA_LDFLAGS="-s -w"recipes-containers/umoci/umoci_git.bb +0
-4@@ -62,11 +62,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off --Quoted 6 lines
2.34.1
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9563):
https://lists.yoctoproject.org/g/meta-virtualization/message/9563
Mute This Topic: https://lists.yoctoproject.org/mt/117668816/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 35 lines · Bruce Ashfield
**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender and know the content is safe.On Fri, Feb 6, 2026 at 7:49 AM Bruce Ashfield via lists.yoctoproject.org <https://urldefense.com/v3/__http://lists.yoctoproject.org__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG9L8r4Sw$> <[email protected]> wrote:
On Fri, Feb 6, 2026 at 4:17 AM Changqing Li via lists.yoctoproject.org
<https://urldefense.com/v3/__http://lists.yoctoproject.org__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG9L8r4Sw$>
<changqing.li
<https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG_MRlU8w$>[email protected]>
wrote:From: Changqing Li <[email protected]>
* Refer [1], cgo will embeded
cgo_ldflagsin the intermediary output,
which make content ID will be incfluenced bycgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not
reproducible, these recipes can build successfully without --sysroot, so
remove it* CGO_ENABLED/CGO_CFLAGS/CGO_LDFLAGS already exported in go.bbclass with
the same value, remove the not needed settingsrefer to all my previous email on the subject.
Quoted 8 lines
I will continue to set these in the classes themselves.
BUT, I will take the removal of the sysroot if we no longer need it.
But the duplicated values from the go classes are entirely intentional.
Bruce
OK, I will send a V2, only remove --sysroot and keep the duplicated value.
Regards
Changqing
Quoted 436 lines
Bruce [1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448 <https://urldefense.com/v3/__https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEh-dmwdA$> Signed-off-by: Changqing Li <[email protected]> --- recipes-containers/containerd/containerd_git.bb <https://urldefense.com/v3/__http://containerd_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG-dNxmyQ$> | 3 --- recipes-containers/cri-tools/cri-tools_git.bb <https://urldefense.com/v3/__http://cri-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFrx_lp2w$> | 5 ----- recipes-containers/docker-compose/docker-compose_git.bb <https://urldefense.com/v3/__http://docker-compose_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFdoh_aVg$> | 6 +----- .../docker-distribution/docker-distribution_git.bb <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGVstuGEg$> | 3 --- recipes-containers/docker/docker.inc <https://urldefense.com/v3/__http://docker.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFR3q-pKg$> | 4 ---- recipes-containers/kubernetes/kubernetes_git.bb <https://urldefense.com/v3/__http://kubernetes_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEfOKW7VQ$> | 8 +++++--- recipes-containers/nerdctl/nerdctl_git.bb <https://urldefense.com/v3/__http://nerdctl_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHOzkG3bw$> | 6 ------ recipes-containers/oci-image-tools/oci-image-tools_git.bb <https://urldefense.com/v3/__http://oci-image-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHFYvMiTg$> | 3 --- .../oci-runtime-tools/oci-runtime-tools_git.bb <https://urldefense.com/v3/__http://oci-runtime-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHo17vUNg$> | 3 --- recipes-containers/podman/podman_git.bb <https://urldefense.com/v3/__http://podman_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEvWx5jpg$> | 8 -------- recipes-containers/runc/runc.inc <https://urldefense.com/v3/__http://runc.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGFMwrHwQ$> | 3 --- recipes-containers/skopeo/skopeo_git.bb <https://urldefense.com/v3/__http://skopeo_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF9RFAGNA$> | 3 --- recipes-containers/umoci/umoci_git.bb <https://urldefense.com/v3/__http://umoci_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlETIKfTGg$> | 3 --- 13 files changed, 6 insertions(+), 52 deletions(-) diff --git a/recipes-containers/containerd/containerd_git.bb <https://urldefense.com/v3/__http://containerd_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG-dNxmyQ$> b/recipes-containers/containerd/containerd_git.bb <https://urldefense.com/v3/__http://containerd_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG-dNxmyQ$> index 081cf354..3d66e06e 100644 --- a/recipes-containers/containerd/containerd_git.bb <https://urldefense.com/v3/__http://containerd_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG-dNxmyQ$> +++ b/recipes-containers/containerd/containerd_git.bb <https://urldefense.com/v3/__http://containerd_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlG-dNxmyQ$> @@ -47,9 +47,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export BUILDTAGS="no_btrfs static_build netgo" export CFLAGS="${CFLAGS}" export LDFLAGS="${LDFLAGS}" diff --git a/recipes-containers/cri-tools/cri-tools_git.bb <https://urldefense.com/v3/__http://cri-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFrx_lp2w$> b/recipes-containers/cri-tools/cri-tools_git.bb <https://urldefense.com/v3/__http://cri-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFrx_lp2w$> index dad675e8..98c43b6b 100644 --- a/recipes-containers/cri-tools/cri-tools_git.bb <https://urldefense.com/v3/__http://cri-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFrx_lp2w$> +++ b/recipes-containers/cri-tools/cri-tools_git.bb <https://urldefense.com/v3/__http://cri-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFrx_lp2w$> @@ -46,12 +46,7 @@ do_compile() { export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" cd ${S}/src/import - # Build the target binaries - export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CFLAGS="" export LDFLAGS="" export CC="${CC}" diff --git a/recipes-containers/docker-compose/docker-compose_git.bb <https://urldefense.com/v3/__http://docker-compose_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFdoh_aVg$> b/recipes-containers/docker-compose/docker-compose_git.bb <https://urldefense.com/v3/__http://docker-compose_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFdoh_aVg$> index ccb36a16..de9427ae 100644 --- a/recipes-containers/docker-compose/docker-compose_git.bb <https://urldefense.com/v3/__http://docker-compose_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFdoh_aVg$> +++ b/recipes-containers/docker-compose/docker-compose_git.bb <https://urldefense.com/v3/__http://docker-compose_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFdoh_aVg$> @@ -53,13 +53,9 @@ do_compile() { # GOMODCACHE, GOPROXY, GOSUMDB, GOTOOLCHAIN are set by go-mod-vcs.bbclass export GOPATH="${S}/src/import/.gopath:${STAGING_DIR_TARGET}/${prefix}/local/go" - export CGO_ENABLED="1" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" GO_LDFLAGS="-s -w -X internal.Version=${PV} -X ${COMPOSE_PKG}/internal.Version=${PV}" GO_BUILDTAGS="" @@ -85,4 +81,4 @@ INSANE_SKIP:${PN} += "ldflags already-stripped" # the AWS dependency is 8GB, try and control the # size of the clones -BB_GIT_SHALLOW = "1" \ No newline at end of file +BB_GIT_SHALLOW = "1" diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGVstuGEg$> b/recipes-containers/docker-distribution/docker-distribution_git.bb <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGVstuGEg$> index 5e37fe74..63001331 100644 --- a/recipes-containers/docker-distribution/docker-distribution_git.bb <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGVstuGEg$> +++ b/recipes-containers/docker-distribution/docker-distribution_git.bb <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGVstuGEg$> @@ -28,12 +28,9 @@ do_compile() { export GOROOT="${STAGING_LIBDIR}/go" # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" export GO_GCFLAGS="" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GO_BUILD_FLAGS="-trimpath" diff --git a/recipes-containers/docker/docker.inc <https://urldefense.com/v3/__http://docker.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFR3q-pKg$> b/recipes-containers/docker/docker.inc <https://urldefense.com/v3/__http://docker.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFR3q-pKg$> index 99535a77..b0f52d77 100644 --- a/recipes-containers/docker/docker.inc <https://urldefense.com/v3/__http://docker.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFR3q-pKg$> +++ b/recipes-containers/docker/docker.inc <https://urldefense.com/v3/__http://docker.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFR3q-pKg$> @@ -80,10 +80,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}' export GO111MODULE=off diff --git a/recipes-containers/kubernetes/kubernetes_git.bb <https://urldefense.com/v3/__http://kubernetes_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEfOKW7VQ$> b/recipes-containers/kubernetes/kubernetes_git.bb <https://urldefense.com/v3/__http://kubernetes_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEfOKW7VQ$> index f7b6940a..89c53930 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb <https://urldefense.com/v3/__http://kubernetes_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEfOKW7VQ$> +++ b/recipes-containers/kubernetes/kubernetes_git.bb <https://urldefense.com/v3/__http://kubernetes_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEfOKW7VQ$> @@ -54,6 +54,9 @@ inherit cni_networking COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux' +CGO_LDFLAGS ?= "${LDFLAGS}" +CGO_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" + do_compile() { export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${UNPACKDIR}/git/" cd ${S} @@ -70,7 +73,6 @@ do_compile() { export CGO_LDFLAGS="$(echo ${BUILD_LDFLAGS} | sed 's/-Wl,-O1//g' | sed 's/-Wl,--dynamic-linker.*?\( \|$\)//g')" export CC="${BUILD_CC}" export LD="${BUILD_LD}" - # set the toolchain to local to avoid an attempted fetch of # valiation by the build # https://github.com/actions/setup-go/issues/420 <https://urldefense.com/v3/__https://github.com/actions/setup-go/issues/420__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF7ekBHFw$> @@ -85,8 +87,8 @@ do_compile() { export GOARCH="${TARGET_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_LDFLAGS="${CGO_LDFLAGS}" export CFLAGS="" export LDFLAGS="" export CC="${CC}" diff --git a/recipes-containers/nerdctl/nerdctl_git.bb <https://urldefense.com/v3/__http://nerdctl_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHOzkG3bw$> b/recipes-containers/nerdctl/nerdctl_git.bb <https://urldefense.com/v3/__http://nerdctl_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHOzkG3bw$> index 8f63b48c..eb873e23 100644 --- a/recipes-containers/nerdctl/nerdctl_git.bb <https://urldefense.com/v3/__http://nerdctl_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHOzkG3bw$> +++ b/recipes-containers/nerdctl/nerdctl_git.bb <https://urldefense.com/v3/__http://nerdctl_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHOzkG3bw$> @@ -71,12 +71,6 @@ do_compile() { cd ${S}/src/import - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # -trimpath removes build paths from the binary (required for reproducible builds) oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath" binaries } diff --git a/recipes-containers/oci-image-tools/oci-image-tools_git.bb <https://urldefense.com/v3/__http://oci-image-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHFYvMiTg$> b/recipes-containers/oci-image-tools/oci-image-tools_git.bb <https://urldefense.com/v3/__http://oci-image-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHFYvMiTg$> index 36026214..6c355377 100644 --- a/recipes-containers/oci-image-tools/oci-image-tools_git.bb <https://urldefense.com/v3/__http://oci-image-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHFYvMiTg$> +++ b/recipes-containers/oci-image-tools/oci-image-tools_git.bb <https://urldefense.com/v3/__http://oci-image-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHFYvMiTg$> @@ -29,11 +29,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOBUILDFLAGS="-trimpath" diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb <https://urldefense.com/v3/__http://oci-runtime-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHo17vUNg$> b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb <https://urldefense.com/v3/__http://oci-runtime-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHo17vUNg$> index 81f51f9c..0ba69756 100644 --- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb <https://urldefense.com/v3/__http://oci-runtime-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHo17vUNg$> +++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb <https://urldefense.com/v3/__http://oci-runtime-tools_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHo17vUNg$> @@ -25,11 +25,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export GOFLAGS="-mod=vendor" diff --git a/recipes-containers/podman/podman_git.bb <https://urldefense.com/v3/__http://podman_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEvWx5jpg$> b/recipes-containers/podman/podman_git.bb <https://urldefense.com/v3/__http://podman_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEvWx5jpg$> index f09e01f8..5e5f1f9b 100644 --- a/recipes-containers/podman/podman_git.bb <https://urldefense.com/v3/__http://podman_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEvWx5jpg$> +++ b/recipes-containers/podman/podman_git.bb <https://urldefense.com/v3/__http://podman_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEvWx5jpg$> @@ -78,19 +78,11 @@ do_compile() { ln -sf "../../../import/vendor/github.com/varlink/ <https://urldefense.com/v3/__http://github.com/varlink/__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEGGsslOg$>" ".gopath/src/github.com/varlink <https://urldefense.com/v3/__http://github.com/varlink__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlHyXW604g$>" - export GOARCH="${BUILD_GOARCH}" export GOPATH="${S}/src/.gopath" export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" cd ${S}/src/.gopath/src/"${PODMAN_PKG}" - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - # podman now builds go-md2man and requires the host/build details export NATIVE_GOOS=${BUILD_GOOS} export NATIVE_GOARCH=${BUILD_GOARCH} diff --git a/recipes-containers/runc/runc.inc <https://urldefense.com/v3/__http://runc.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGFMwrHwQ$> b/recipes-containers/runc/runc.inc <https://urldefense.com/v3/__http://runc.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGFMwrHwQ$> index b834ab14..ebff354f 100644 --- a/recipes-containers/runc/runc.inc <https://urldefense.com/v3/__http://runc.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGFMwrHwQ$> +++ b/recipes-containers/runc/runc.inc <https://urldefense.com/v3/__http://runc.inc__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlGFMwrHwQ$> @@ -57,9 +57,6 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" export GO=${GO} export CFLAGS="" diff --git a/recipes-containers/skopeo/skopeo_git.bb <https://urldefense.com/v3/__http://skopeo_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF9RFAGNA$> b/recipes-containers/skopeo/skopeo_git.bb <https://urldefense.com/v3/__http://skopeo_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF9RFAGNA$> index 936d2c3d..1542f2a6 100644 --- a/recipes-containers/skopeo/skopeo_git.bb <https://urldefense.com/v3/__http://skopeo_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF9RFAGNA$> +++ b/recipes-containers/skopeo/skopeo_git.bb <https://urldefense.com/v3/__http://skopeo_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlF9RFAGNA$> @@ -53,11 +53,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off export EXTRA_LDFLAGS="-s -w" diff --git a/recipes-containers/umoci/umoci_git.bb <https://urldefense.com/v3/__http://umoci_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlETIKfTGg$> b/recipes-containers/umoci/umoci_git.bb <https://urldefense.com/v3/__http://umoci_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlETIKfTGg$> index f148b7fa..32868594 100644 --- a/recipes-containers/umoci/umoci_git.bb <https://urldefense.com/v3/__http://umoci_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlETIKfTGg$> +++ b/recipes-containers/umoci/umoci_git.bb <https://urldefense.com/v3/__http://umoci_git.bb__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlETIKfTGg$> @@ -62,11 +62,8 @@ do_compile() { # Pass the needed cflags/ldflags so that cgo # can find the needed headers files and libraries - export CGO_ENABLED="1" export CFLAGS="" export LDFLAGS="" - export CGO_CFLAGS="${TARGET_CFLAGS}" - export CGO_LDFLAGS="${TARGET_LDFLAGS}" export GO111MODULE=off -- 2.34.1 -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9563): https://lists.yoctoproject.org/g/meta-virtualization/message/9563 <https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-virtualization/message/9563__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlFV4YXp0Q$> Mute This Topic: https://lists.yoctoproject.org/mt/117668816/1050810 <https://urldefense.com/v3/__https://lists.yoctoproject.org/mt/117668816/1050810__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlH2w4MnXg$> Group Owner: [email protected] <mailto:meta-virtualization%[email protected]> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub <https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-virtualization/unsub__;!!AjveYdw8EvQ!a7XmcWhdCOyYHFfX7BXsZa3Q6MwU8S4BYPrfgGuWvKwkn4sk-0XiTm13VgNNrgIStZbv67szL79VQNGLHh_zXlEXPiyRHg$> [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II